﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using  DTO;
using DAL;
using System.Data;
namespace BLL
{
    public class Rec_RoomBLL
    {

        public void Insert(Rec_Room r)
        {
            Rec_RoomDAO room = new Rec_RoomDAO();
            room.Insert(r);
        }
        public DataTable SelectAll()
        {
            Rec_RoomDAO room = new Rec_RoomDAO();
            return room.SelectAll();
        }
        public DataTable SelectAll(String sql)
        {
            Rec_RoomDAO room = new Rec_RoomDAO();
            return room.SelectAll(sql);
        }
        public static DataTable GetCount(long IDBD)
        {
            Rec_RoomDAO dao = new Rec_RoomDAO();
            return dao.GetCount(IDBD, 1);
        }
    }
}
